﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PcProject.Domain.Models.Entities
{
    /// <summary>
    /// 订单视图
    /// </summary>
    public class OrderAll
    {
        [Key]
        public int OrderId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        [StringLength(20)]
        public string OrderNumber { get; set; }
        /// <summary>
        /// 物流编号
        /// </summary>
        public string LogisNumber { get; set; }
        /// <summary>
        /// 订单地址
        /// </summary>
        public string OrderAdress { get; set; }
        /// <summary>
        /// 邮费
        /// </summary>
        public decimal Postage { get; set; }
        /// <summary>
        /// 运费险
        /// </summary>
        public int Insurance { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int OrderStatus { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProName { get; set; }
        /// <summary>
        /// 商品图片
        /// </summary>
        public string PicUrl { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品现价
        /// </summary>
        public decimal NewPrice { get; set; }
        /// <summary>
        /// 商品数量
        /// </summary>
        public int ProNum { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

    }
}
